package com.edu.csu.smartfarm.common.domain.constant;

/**
 * HttpStatus Code Return After a operation
 *
 * @author Huaxi Luo
 */
public class HttpStatus {

    /**
     * Success
     */
    public static final int SUCCESS = 200;

    /**
     * Object-Create Success
     */
    public static final int CREATED = 201;

    /**
     * Accept
     */
    public static final int ACCEPT = 202;

    /**
     * Success and no data return
     */
    public static final int NO_DATA = 203;

    /**
     * Resources Removed
     */
    public static final int REMOVED = 301;

    /**
     * Redirection
     */
    public static final int REDIR = 303;

    /**
     * Resources Unmodified
     */
    public static final int UNMODIFIED = 304;

    /**
     * BAD REQUEST. WRONG PARAMETERS
     */
    public static final int BAD_REQUEST = 400;

    /**
     * Unauthorized
     */
    public static final int UNAUTHORIZED = 403;

    /**
     * Resources, Service don't find
     */
    public static final int NOT_FOUND = 404;

    /**
     * Http Method not allowed
     */
    public static final int BAD_METHOD = 405;

    /**
     * Resources conflict
     */
    public static final int CONFLICT = 409;

    /**
     * Unsupported Datatype
     */
    public static final int UNSUPPORTED_TYPE = 415;

    /**
     * Internal Error
     */
    public static final int ERROR = 500;

    /**
     * Unimplemented Interface
     */
    public static final int NOT_IMPLEMENTED = 501;

}
